<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/1/28
  Time: 18:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>输入框组</title>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/libs/bootstrap/css/bootstrap.css">
    <script src="${pageContext.request.contextPath}/libs/jquery/jquery.js"></script>
    <script src="${pageContext.request.contextPath}/libs/bootstrap/js/bootstrap.js"></script>
</head>
<body>

<div class="container">

    <div class="row">
        <div class="col-sm-3">
            <form role="form">
                <div class="input-group input-group-lg">
                    <span class="input-group-addon">@</span>
                    <input type="text" class="form-control" placeholder="Email">
                </div>
                <div class="input-group">
                    <span class="input-group-addon">￥</span>
                    <input type="text" class="form-control" placeholder="人民币">
                </div>
                <div class="input-group">
                    <span class="input-group-addon input-group-sm">$</span>
                    <input type="text" class="form-control" placeholder="金额">
                    <span class="input-group-addon">.00</span>
                </div>
            </form>
        </div>
        <%-- 按钮作为输入框的前缀或者后缀 --%>
        <div class="col-sm-3">
            <div class="input-group">
                <span class="input-group-addon">
                    <input type="checkbox">
                </span>
                <input type="text" class="form-control" placeholder="复选框前缀">
            </div>
            <div class="input-group">
                <span class="input-group-addon">
                    <input type="radio">
                </span>
                <input type="text" class="form-control" placeholder="单选框前缀">
            </div>
        </div>
        <div class="col-sm-3">
            <div class="input-group">
                <span class="input-group-btn">
                    <button type="button" class="btn btn-default">年龄</button>
                </span>
                <input type="text" class="form-control" placeholder="输入年龄">
            </div>
            <div class="input-group">
                <input type="text" class="form-control" placeholder="关键字查询">
                <span class="input-group-btn">
                    <button type="button" class="btn btn-primary">搜索</button>
                </span>
            </div>
        </div>

        <div class="col-sm-3">
            <div class="input-group">
                <input type="text" class="form-control">
                <div class="input-group-btn">
                    <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                        下拉菜单
                        <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu">
                        <li> <a href="#">Java</a> </li>
                        <li> <a href="#">Web</a> </li>
                        <li class="divider"></li>
                        <li> <a href="#">Python</a> </li>
                    </ul>
                </div>
            </div>
            <div class="input-group">
                <div class="input-group-btn">
                    <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
                        条件选择
                        <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu">
                        <li> <a href="#">名称</a> </li>
                        <li> <a href="#">日期</a> </li>
                        <li> <a href="#">模糊</a> </li>
                    </ul>
                </div>
                <input type="text" class="form-control">
            </div>
        </div>
    </div>

</div>

</body>
</html>
